<?php
namespace ImiDemo\HttpDemo\HttpSecond\Controller;

use Imi\Controller\HttpController;
use Imi\Server\Route\Annotation\Route;
use Imi\Server\Route\Annotation\Action;
use Imi\Server\Route\Annotation\Controller;

/**
 * @Controller
 */
class Index extends HttpController
{
    /**
     * 访问地址：http://127.0.0.1:8081/
     * 
     * @Action()
     * @Route(url="/", method="GET")
     * @return void
     */
    public function index()
    {
        return $this->response->write('second server');
    }

}